import { request } from 'umi';

/** 分页 标签  POST */
export async function pageLabel(options?: any) {
  return request<BaseResponseBean.responsePage<DatahubLabelData.LabelPage[]>>(
    '/datahub/label/page',
    {
      method: 'POST',
      data: options || {},
    },
  );
}

/**  保存 标签  POST */
export async function saveLabel(options?: any) {
  return request<BaseResponseBean.response<string>>('/datahub/label/save', {
    method: 'POST',
    data: options || {},
  });
}



/**  保存 标签  POST */
export async function needSaveLabel(options?: any) {
  return request<BaseResponseBean.response<string>>('/datahub/label/save/need', {
    method: 'POST',
    data: options || {},
  });
}
